using System;
using NUnit.Framework;
using System.Xml.Xsl;
using System.Xml;
using SearchTools;

namespace SearchTools.Tests
{
	[TestFixture]
	public class XslExtensionTests
	{
		[Test,Category("XslExtension")]
		public void TestExtension()
		{
			XmlDocument sourceDoc = new XmlDocument(); 
			sourceDoc.Load("TestInput.xml");

			XslTransform transform = new XslTransform();
			transform.Load("Test.xslt");
			XsltArgumentList xsltArgList = new XsltArgumentList();
		
			xsltArgList.AddExtensionObject("urn:rix",new Xsl());

			transform.Transform(sourceDoc,xsltArgList,Console.Out);
		}
	}


}	
